package com.ltedu.system.client;

import com.ltedu.common.vo.Result;
import com.ltedu.system.factory.UserFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName: UserClient
 * @Auther: Jerry
 * @Date: 2020/11/14 11:22
 * @Desctiption: UserClient接口
 * @Version: 1.0
 */
@FeignClient(value = "learning2think-edu-user", path = "/user", fallbackFactory = UserFeignFallbackFactory.class)
public interface UserClient {

    @RequestMapping("/info/{username}")
    Result info(@PathVariable("username") String username);
}
